﻿<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
<title>栏目选择</title>
		<link href="${ctx}/tree/css/xtree2.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="${ctx}/tree/scripts/xtree2.js"></script>
		<script type="text/javascript" src="${ctx}/tree/scripts/xloadtree2.js"></script>
		<link href="${ctx}/css/main/base.css" rel="stylesheet" type="text/css" />
		<link href="${ctx}/css/main/main.css" rel="stylesheet" type="text/css" />
<style>
.a{ display:block;margin-left:10px;}
.div{ margin-left:10px; text-align:left;}
.div_t2{}
.left{ text-align:left !important;}
.l_add2{ background:url(${ctx}/images/main/l_add2.gif) no-repeat; padding-left:15px;}
.l_dec2{ background:url(${ctx}/images/main/l_dec2.gif) no-repeat; padding-left:15px;}
.font14 {font-size: 14px;font-weight: bold;color: #005C7B;background-color: #C8DDF0;text-align: left;text-indent: 10px;padding-top: 5px;border-bottom-width: 1px;border-bottom-style: solid;border-bottom-color: #94BDE2;}
.bodysy {font-size: 12px;line-height: 20px;color: #333333;}
.bodysy a {font-size: 12px;line-height: 20px;color: #333333;text-decoration: none;}
.bodysy a:link {font-size: 12px;line-height: 20px;color: #333333;text-decoration: none;}
.bodysy a:visited {font-size: 12px;line-height: 20px;color: #333333;text-decoration: none;}
.bodysy a:hover {
	font-size: 12px;
	line-height: 20px;
	color: #333333;
	text-decoration: none;
	background-color: #C8DDF0;
}
.bodysy a:active {font-size: 12px;line-height: 20px;color: #333333;text-decoration: none;}
</style>
</head>
<body class="bodysy">
<table  class="div_t2 left" width="100%">
			<tr class="bg1">
				<td height="30" class="font14"><s:property value="cla.className" /></td>
			</tr>
			<tr>
				<td>
				<div style="margin-left:15px;display:block">
				<s:iterator value="funcs1" status="func1" id="f1">		
				<div ><s:if test="#f1[3]==0"><a href="#" onclick="showSub('id<s:property value='#f1[0]'/>','<s:property value='#f1[2]'/>')" ><img src="${ctx}/images/main/l_dec2.gif" width="20" height="20" border="0"  id="Iid<s:property value='#f1[0]'/>" /><s:property value='#f1[2]'/></a></s:if>
					<s:else><div><img src="${ctx}/images/main/l_dec2.gif" width="20" height="20" border="0"/><a href="#" onclick="setUser('<s:property value='#f1[0]'/>','<s:property value='#f1[2]'/>');"> <s:property value='#f1[2]'/></a></div></s:else>
					<div id="id<s:property value='#f1[0]'/>" style="margin-left:15px;display:block">
						<s:iterator  value="funcs2" status="func2" id="f2">
						<s:if test="#f2[1].substring(0,4)==#f1[1]">
							<s:if test="#f2[3]==0"><img src="${ctx}/images/main/l_dec2.gif" width="20" height="20" border="0" onclick="showSub('id<s:property value='#f2[0]'/>','<s:property value='#f2[2]'/>')" id="Iid<s:property value='#f2[0]'/>" /><s:property value='#f2[2]'/></s:if>
							<s:else><div><img src="${ctx}/images/main/l_dec2.gif" width="20" height="20" border="0"/><a href="#" onclick="setUser('<s:property value='#f2[0]'/>','<s:property value='#f2[2]'/>');" > <s:property value='#f2[2]'/></a></div></s:else>
							<div id="id<s:property value='#f2[0]'/>" style="margin-left:15px;display:block">
								<s:iterator  value="funcs3" status="func3" id="f3">
								<s:if test="#f3[1].substring(0,6)==#f2[1]">
									<s:if test="#f3[3]==0"><img src="${ctx}/images/main/l_dec2.gif" width="20" height="20" border="0" onclick="showSub('id<s:property value='#f3[0]'/>','<s:property value='#f3[2]'/>')" id="Iid<s:property value='#f3[0]'/>" /><s:property value='#f3[2]'/></s:if>
									<s:else><img src="${ctx}/images/main/l_dec2.gif" width="20" height="20" border="0"/><a href="#" onclick="setUser('<s:property value='#f3[0]'/>','<s:property value='#f3[2]'/>');" style="margin-left:30px;"> <s:property value='#f3[2]'/></a></s:else>
									<div id="id<s:property value='#f3[0]'/>" style="margin-left:15px;display:block">
										<s:iterator value="funcs4" status="func4" id="f4"> 
										<s:if test="#f4[1].substring(0,8)==#f3[1]">
										<img src="${ctx}/images/main/l_dec2.gif" width="20" height="20" border="0"/><a href="#" onclick="setUser('<s:property value='#f4[0]'/>','<s:property value='#f4[2]'/>');" style="margin-left:10px;"> <s:property value='#f4[2]'/></a>
										</s:if>
										</s:iterator>
									</div>
								</s:if>
								</s:iterator>
							</div>
						</s:if>	
						</s:iterator>
					</div>
				</s:iterator>
				</div>
			</td>
		</tr>
	</table>
</body>
</html>
<script>

function setUser(id,name){
		var array=new Array();	
	       array[0]=new Array();
	       array[0][0]=name;
	       array[0][1]=id;
	    window.close();
	    window.returnValue=array;

}
function showSub(id,name){
var obj=document.getElementById(id);
var img=document.getElementById("I"+id);
	if(obj.style.display=="block"){
		obj.style.display="none";
		img.src="${ctx}/images/main/l_add2.gif";
	}
	else{
		obj.style.display="block";
		img.src="${ctx}/images/main/l_dec2.gif";
	}
}
</script>